package com.xiaoyu.beans.factory.config;

import com.xiaoyu.beans.BeansException;
import com.xiaoyu.beans.factory.BeanFactory;

public interface AutowireCapableBeanFactory extends BeanFactory {
    /**
     * Bean实例化前处理接口
     * @param existingBean
     * @param beanName
     * @return
     * @throws BeansException
     */
    Object applyBeanPostProcessorsBeforeInitialization(Object existingBean, String beanName) throws BeansException;

    /**
     * Bean实例化后处理接口
     * @param existingBean
     * @param beanName
     * @return
     * @throws BeansException
     */
    Object applyBeanPostProcessorsAfterInitialization(Object existingBean, String beanName) throws BeansException;
}
